package com.sky.controller.user;

import com.sky.config.GlobalStatus;
import com.sky.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("userShopController")
@RequestMapping("/user/shop")
@Api("用户相关接口")
public class ShopController {

    @ApiOperation("获取营业状态")
    @GetMapping("/status")
    public Result getStatus(){
        return Result.success(GlobalStatus.getStatus());
    }
}
